package com.cne.gmail.Gmail.model;


import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.data.annotation.Id;
import org.springframework.data.mongodb.core.index.Indexed;
import org.springframework.data.mongodb.core.mapping.Document;

import java.util.List;

@ApiModel(value="mailSenderInfo",description="发送邮件实体类")
@Data
@Document("mailSenderInfo")
public class MailSenderInfo {
    @Id
    private String id;
    private String cDate;
    @ApiModelProperty(name = "from",value = "发件人",example = "zhangxuan321@gmail.com")
    private String from;
    @ApiModelProperty(name = "receivers",value = "收件人",example = " [\"zhangxuan494@163.com\"]")
    private List<String> receivers;
    @ApiModelProperty(name = "cc",value = "抄送",example = "[\"804591870@qq.com\"]")
    private List<String> cc;
    @ApiModelProperty(name = "subject",value = "主题",example = "这是一封邮件")
    private String subject;
    @ApiModelProperty(name = "contextImgModels",value = "正文图片",example = "[\n" +
                                                        "    {\n" +
                                                        "      \"cId\": \"logo\",\n" +
                                                        "      \"fileName\": \"logo.jpg\",\n" +
                                                        "      \"url\": \"http://download.files.cnexps.com/logo.jpg\"\n" +
                                                        "    }\n" +
                                                        "  ]")
    private List<ContextImgModel> contextImgModels;
    @ApiModelProperty(name = "attchmentModels",value = "附件",example = "[\n" +
                                                        "    {\n" +
                                                        "      \"fileName\": \"OBA临时帐号.txt\",\n" +
                                                        "      \"url\": \"http://download.files.cnexps.com/82a5a024-b78a-411d-a364-209c5508156e/OBA临时帐号.txt\"\n" +
                                                        "    }\n" +
                                                        "  ]")

    private List<AttchmentModel>  attchmentModels;
    @ApiModelProperty(name = "content",value = "正文",example = "<div dir=\"ltr\">收到请<div><img src=\"cid:logo\" alt=\"logo.jpg\" width=\"520\" height=\"242\"><br></div>回复</div>\r\n")
    private String content;

}
